//
//  AppDelegate.m
//  12-StoryBoard(sb)
//
//  Created by GivenBmli on 16/7/29.
//  Copyright © 2016年 GivenBmli. All rights reserved.
//

#import "AppDelegate.h"

@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.
//    StoryBoard
//    1.与xib相同的是,都属于IB开发
//    2.与xib不同,sb是多视图管理
//    3.Single View Application 会自动生成两个sb文件
//    Main.storyboard 主要的视图控制器管理
//    launchScreen. stiryboard 启动屏幕页视图管理(在Xcode7 以前,生成的是xib文件)
//    4.如果使用sb开发就不需要创建window
//    Main.storbordy
//    系统默认,Main为整个程序的入口
//    Main.sb 默认ViewController 为整个storboard的入口
//    自定义sb
//    工程中,可以包含多个storyboard
//    工程中的Main.storyboard可以修改自定义的storyboard
//    1.让storyboard 有个初始化得Vc
//    2.让Vc对应关联类
    
//       sb中的界面跳转是单向的
//    UIStoryboardSegue用来执行页面跳转
//    如果要使页面跳转变为双向,需要自己定义UIStoryboardSegue
//    自定义完成后系统会自定义识别到storyboard 中
//    注意:自定义时,必须要重写- (void)perform方法
    
//    系统的界面跳转方式
//    show 根据是否包含navgation,决定跳转方式 包含为push 不包含 为模态
//    show Detail present的效果(模态效果)
//    present (模态)
    
    
    
    return YES;
}

- (void)applicationWillResignActive:(UIApplication *)application {
    // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
    // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
}

- (void)applicationDidEnterBackground:(UIApplication *)application {
    // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
    // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}

- (void)applicationWillEnterForeground:(UIApplication *)application {
    // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
}

- (void)applicationDidBecomeActive:(UIApplication *)application {
    // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}

- (void)applicationWillTerminate:(UIApplication *)application {
    // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}

@end
